//
//  UITabBar+HWBadge.h
//  OCDome
//
//  Created by 李含文 on 2020/8/19.
//  Copyright © 2020 李含文. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UITabBar (HWBadge)

@property (nonatomic,assign) CGSize    hw_badgeMinSize;                                  // 小红点最小size(默认:12,12)
@property (nonatomic,strong) UIImage  *hw_badgeImage;                                    // 小红点图片
@property (nonatomic,strong) UIColor  *hw_badgeColor;                                    // 小红点颜色(默认:红色)
@property (nonatomic,assign) CGPoint   hw_badgePoint;                                    // 小红点的x、y值
@property (nonatomic,copy)   NSString *hw_badgeValue;                                    // 小红点的数字
@property (nonatomic,strong) UIView   *hw_badgeView;                                     // 小红点view
@property (nonatomic,assign) UIFont   *hw_badgeValueFont;                                // 小红点字号(默认:9)
@property (nonatomic,assign) UIColor  *hw_badgeValueColor;                               // 小红点文字颜色(默认:白色)

// 显示小红点
- (void)hw_showBadgeWithIndex:(NSUInteger )index;
// 隐藏小红点
- (void)hw_hiddenBadgeWithIndex:(NSUInteger )index animation:(BOOL)animation;
@end

NS_ASSUME_NONNULL_END
